package com.warmheart.builder.sys;

import com.warmheart.core.rs.base.BaseRsBuilder;
import com.warmheart.core.rs.oper.Rs;
import com.warmheart.entity.sys.SysDictBase;

/**
 * 
 * @ClassName: SysDictBase
 * @Description: 数据字典实体RsBuilder类，对应表名称为tb_sys_dict_base
 *               温馨提示：不要修改该实体RsBuilder类的任何字段
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
public class SysDictBaseRsBuilder extends BaseRsBuilder<SysDictBase, SysDictBaseRsBuilder> {

    private final SysDictBase t;

    @Override
    protected SysDictBaseRsBuilder self() {
        return this;
    }

    @Override
    public SysDictBase core() {
        return this.t;
    }

    public SysDictBaseRsBuilder(SysDictBase sysDictBase) {
        t = sysDictBase;
    }

    /**
     * 字典code
     */
    private Rs<SysDictBase, SysDictBaseRsBuilder> dictValue;

    /**
     * 字典值
     */
    private Rs<SysDictBase, SysDictBaseRsBuilder> dictName;

    /**
     * 字典类型
     */
    private Rs<SysDictBase, SysDictBaseRsBuilder> dictType;

    /**
     * 字典类型名称
     */
    private Rs<SysDictBase, SysDictBaseRsBuilder> dictTypeName;

    /**
     * 排序
     */
    private Rs<SysDictBase, SysDictBaseRsBuilder> sort;

    public Rs<SysDictBase, SysDictBaseRsBuilder> dictValue() {
        if (this.dictValue == null) {
            this.dictValue = new Rs<SysDictBase, SysDictBaseRsBuilder>(self(), "dict_value", "dictValue");
        }
        return this.dictValue;
    }

    public Rs<SysDictBase, SysDictBaseRsBuilder> dictName() {
        if (this.dictName == null) {
            this.dictName = new Rs<SysDictBase, SysDictBaseRsBuilder>(self(), "dict_name", "dictName");
        }
        return this.dictName;
    }

    public Rs<SysDictBase, SysDictBaseRsBuilder> dictType() {
        if (this.dictType == null) {
            this.dictType = new Rs<SysDictBase, SysDictBaseRsBuilder>(self(), "dict_type", "dictType");
        }
        return this.dictType;
    }

    public Rs<SysDictBase, SysDictBaseRsBuilder> dictTypeName() {
        if (this.dictTypeName == null) {
            this.dictTypeName = new Rs<SysDictBase, SysDictBaseRsBuilder>(self(), "dict_type_name", "dictTypeName");
        }
        return this.dictTypeName;
    }

    public Rs<SysDictBase, SysDictBaseRsBuilder> sort() {
        if (this.sort == null) {
            this.sort = new Rs<SysDictBase, SysDictBaseRsBuilder>(self(), "sort", "sort");
        }
        return this.sort;
    }
}